package com.sanji.sjmallmodule.goods;

/**
 * Created by fhm on 2016/12/23.
 */

public class GoodsBean {
    private String url = "";
    private String phoneName = "";
    private double phonePrice;
    private int topFlag;//左边图标显示的样式
    private String sellingPoints;//卖点
    private int stock;//0-无存货，非0-有存货
    private int buyNumber;//选择的数量
    //限购量
    private int limitCount;
    private String GoodsCode;//商品编码

    private String standard = "";//全网通
    private String color = "";//颜色
    private String edition = "";//标准版
    private String storage = "";//库存量
    private String ramNumber = "";//内存
    private String skuNum;
    private String skuId;

    public String getRamNumber() {
        return ramNumber;
    }

    public void setRamNumber(String ramNumber) {
        this.ramNumber = ramNumber;
    }

    public String getSkuNum() {
        return skuNum;
    }

    public void setSkuNum(String skuNum) {
        this.skuNum = skuNum;
    }

    public String getStorage() {
        return storage;
    }

    public void setStorage(String storage) {
        this.storage = storage;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getEdition() {
        return edition;
    }

    public void setEdition(String edition) {
        this.edition = edition;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getGoodsCode() {
        return GoodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        GoodsCode = goodsCode;
    }

    public int getBuyNumber() {
        return buyNumber;
    }

    public void setBuyNumber(int selectNumber) {
        this.buyNumber = selectNumber;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int isStock) {
        this.stock = isStock;
    }

    public String getSellingPoints() {
        return sellingPoints;
    }

    public void setSellingPoints(String sellingPoints) {
        this.sellingPoints = sellingPoints;
    }

    public GoodsBean() {
        super();
    }

    public GoodsBean(String url, String phoneName, double phonePrice) {
        this.url = url;
        this.phoneName = phoneName;
        this.phonePrice = phonePrice;
    }

    public GoodsBean(String phoneName, double phonePrice, int isStock, int limit, int count, String goodsCode) {
        this.phoneName = phoneName;
        this.phonePrice = phonePrice;
        this.stock = isStock;
        this.limitCount = limit;
        this.buyNumber = count;
        this.GoodsCode = goodsCode;
    }

    public GoodsBean(String phoneName) {
        this.phoneName = phoneName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPhoneName() {
        return phoneName;
    }

    public void setPhoneName(String phoneName) {
        this.phoneName = phoneName;
    }

    public double getPhonePrice() {
        return phonePrice;
    }

    public void setPhonePrice(double phonePrice) {
        this.phonePrice = phonePrice;
    }

    public int getLimitCount() {
        return limitCount;
    }

    public void setLimitCount(int limitCount) {
        this.limitCount = limitCount;
    }

    public int getTopFlag() {
        return topFlag;
    }

    public void setTopFlag(int topFlag) {
        this.topFlag = topFlag;
    }

    @Override
    public int hashCode() {
        int prime = 31;
        int result = 1;
        result = prime * result + ((this.skuId == null) ? 0 : this.skuId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj.getClass() != GoodsBean.class) {
            return false;
        }
        GoodsBean bean = (GoodsBean) obj;
        if (this.skuId.equals(bean.getSkuId())) {
            return true;
        }
        return false;
    }
}
